#ifndef __WATCHPOINT_H__
#define __WATCHPOINT_H__

#include "common.h"

typedef struct watchpoint {
	int NO;
	struct watchpoint *next;
	char expr[100];
	uint32_t last_value;
	/* TODO: Add more members if necessary */

} WP;

void init_wp_pool();
WP* new_wp();
void free_wp(int no_);
bool check_watchpoint(WP*wp);
void change_watchpoint(int no_,WP* );
int print_watchpoints();

#endif
